#include "TheGame.h"

CTheGame::CTheGame()
{
	//ctor
	
}

CTheGame::~CTheGame()
{
	//dtor
}

void CTheGame::createScene()
{
	
	createModelEntity("model1", "model1");
	
	//m_pSceneMgr->createLight("light1");
	m_pSceneMgr->setAmbientLight(Ogre::ColourValue(0.5, 0.5, 0.5));
	
	Ogre::Entity* e = m_pSceneMgr->createEntity("object1", "log.mesh");
	Ogre::SceneNode* sn = m_pSceneMgr->getRootSceneNode()->createChildSceneNode("object1");
	sn->attachObject(e);
	sn->scale(1.0, 1.0, 1.0);
	sn->translate(0, 0, -10);
	
}
/*
void CTheGame::keyPressed(Ogre::KeyEvent *e)
{
	
	std::cout << "KeyPressed" << std::endl;
	
	if (e->getKey() == Ogre::KC_ESCAPE) {
		
		std::cout << "Escaping" << std::endl;
		
		m_bFinished = true;
		
	}
	
}*/
